package com.ziytek.web.citizen.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 异常处理类
 * 2025/03/24 10:55
 *
 * @author fengx
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class IssuedException extends RuntimeException {
    /**
     * 异常码
     */
    private String errorCode;
    /**
     * 异常信息
     */
    private String errorMessage;

    public IssuedException(String errorCode, String errorMessage) {
        super(errorMessage);
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }

}
